import request from '@/utils/request'

// 查询信息 /h5protal/user/get_info
export function getInfo() {
    return request({
        url: '/h5protal/user/get_info',
        method: 'post'
    })
}

// 查看邀请列表  /h5protal/user/list_own_distribution_info

export function listOwnDistributionInfo(query) {
    return request({
        url: '/h5protal/user/list_own_distribution_info',
        method: 'get',
        params: query
    })
}

// 上传护士证  /h5protal/user/upload_info
export function upload_info_nurse(userId,data) {
    return request({
        url: '/h5protal/user/upload_info?pid='+userId,
        headers:{
            "Content-Type": "multipart/form-data"
        },
        method: 'post',
        data: data
    })
}

// 上传身份证正面 /h5protal/user/upload_idcard
export function upload_idcard(userId,data) {
    return request({
        url: '/h5protal/user/upload_idcard?pid='+userId,
        headers:{
            "Content-Type": "multipart/form-data"
        },
        method: 'post',
        data: data
    })
}

// 上传身份证反面 /h5protal/user/upload_idcard_back
export function upload_idcard_back(userId,data) {
    return request({
        url: '/h5protal/user/upload_idcard_back?pid='+userId,
        headers:{
            "Content-Type": "multipart/form-data"
        },
        method: 'post',
        data: data
    })
}


// 查看订单  /h5protal/user/list_own_distribution_order
export function list_own_distribution_order(query) {
    return request({
        url: '/h5protal/user/list_own_distribution_order',
        method: 'get',
        params: query
    })
}


// 查询分销总金额
export function get_distribution_amount(level) {
    return request({
        url: '/h5protal/user/get_distribution_amount?level='+level,
        method: 'get'
    })
}
